package com.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.pojo.Favorites;
import com.book.pojo.FavoritesVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author icatw
 * @date 2022/4/8
 * @email 762188827@qq.com
 * @apiNote
 */
@Repository
public interface FavoritesMapper extends BaseMapper<Favorites> {
    /**
     * 找到用户最喜欢
     * 找到用户收藏
     *
     * @param id id
     * @return {@link List}<{@link FavoritesVo}>
     */
    List<FavoritesVo> findUserFavorites(@Param("usrId") Integer id);
}
